package yuque.a1至20.CalculateEContinuously;

import java.util.Arrays;

/**
 * ClassName: 排序数组元素18
 * Package: yuque
 * Description:
 *
 * @Author fjorid
 * @Create 2025/1/5 19:53
 * @Version 1.0
 */
public class 排序数组元素18 {
    public static void main(String[] args) {
        int temp = 0;
        int arry[] = {1,4,6,7,22,55,77,99,134,556,1112};
        /*for (int i = 1; i < arry.length; i++) {
            for (int j = 0; j < arry.length-i; j++) {
                if(arry[j]>arry[j+1]){
                   temp=arry[j];
                   arry[j]=arry[j+1];
                   arry[j+1]=temp;
                }


            }

        }

        for (int i = 0; i < arry.length; i++) {
            System.out.println(arry[i]);
        }*/
        Arrays.sort(arry);
        System.out.println(Arrays.toString(arry));


    }

}
